﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Shlook.GUI
{
    public partial class DisplayNameInputForm : Form
    {
        public DisplayNameInputForm()
        {
            InitializeComponent();
        }

        public string DisplayName
        {
            get { return textBox1.Text; }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(textBox1.Text))
            {
                MessageBox.Show("You must enter a nick name");
            }
            else
            {
                DialogResult = DialogResult.OK;
            }
        }

        private void DisplayNameInputForm_Load(object sender, EventArgs e)
        {
            Icon = IconProvider.ApplicationIcon;
        }
    }
}
